import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import pinia from './stores'
import 'normalize.css/normalize.css'
import 'virtual:uno.css'
import * as echarts from 'echarts'
import '@/assets/css/global.scss'
import vintage from '@/theme/vintage.json'
import chalk from '@/theme/chalk.json'
import '@/assets/font/iconfont.css'

const app = createApp(App)

app.use(pinia)
app.use(router)

// 将echarts挂载到全局
app.config.globalProperties.$echarts = echarts
echarts.registerTheme('vintage', vintage)
echarts.registerTheme('chalk', chalk)

app.mount('#app')
